package com.ficus.road.maintain.core.model.taskInfo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ficus.road.maintain.core.model.FailedThirdRequest;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lijiawei
 * @date 2023/10/9 下午9:00
 */

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class AbnormalWorkCheckCDRequest extends FailedThirdRequest {

    public static final String typeName = "案卷流程查询请求(城道)";
    private String taskNum;

    @Override
    public String getTypeName() {
        return AbnormalWorkCheckCDRequest.typeName;
    }

    @Override
    protected String generateRequestId() {
        return typeName + "_" + this.getTaskNum();
    }

    public AbnormalWorkCheckCDRequest(String taskNum) {
        super();
        this.taskNum = taskNum;
        setId(generateRequestId());
    }
}
